import request from '@/utils/request'

// 查询拒单或转介列表
export function listRefuse(query) {
  return request({
    url: '/service/refuse/list',
    method: 'get',
    params: query
  })
}

// 查询拒单或转介详细
export function getRefuse(refuseId) {
  return request({
    url: '/service/refuse/' + refuseId,
    method: 'get'
  })
}

// 新增拒单或转介
export function addRefuse(data) {
  return request({
    url: '/service/refuse',
    method: 'post',
    data: data
  })
}

// 修改拒单或转介
export function updateRefuse(data) {
  return request({
    url: '/service/refuse',
    method: 'put',
    data: data
  })
}

// 删除拒单或转介
export function delRefuse(refuseId) {
  return request({
    url: '/service/refuse/' + refuseId,
    method: 'delete'
  })
}
